package com.aos.erp.gov.ex.model;

import com.aos.erp.gov.ex.enums.TicketStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("t_gov_school_ticket")
public class GovSchoolTicket implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private long id;

    @ApiModelProperty("")
    @TableField("school_id")
    private long schoolId;


    @ApiModelProperty("")
    @TableField("school_name")
    private String schoolName;


    @ApiModelProperty("122账号,account")
    @TableField("account")
    private String account;

    @ApiModelProperty("122账号,usb device id")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty("")
    @TableField("cookies")
    private String cookies;

    @ApiModelProperty("122的web地址，如重庆的是cq.122.gov.cn")
    @TableField("web_code")
    private String webCode;

    @ApiModelProperty("")
    @TableField("status")
    private TicketStatus status = TicketStatus.timeout;


    @ApiModelProperty("")
    @TableField("create_time")
    private Date createTime;


    @ApiModelProperty("到122上刷新的时间点")
    @TableField("refresh_time")
    private Date refreshTime;

    @ApiModelProperty("")
    @TableField("update_time")
    private Date updateTime;

}
